﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Wyse.Server.Base;

namespace Wyse.Tests
{
    [DataContract]
    [MessageData("testMessage2")]
    public class TestMessageData
    {
        [DataMember(Name="intParam")]
        public int IntParam;

        [DataMember(Name="stringParam")]
        public String StringParam;

        public override bool Equals(object obj)
        {
            if (obj is TestMessageData)
            {
                TestMessageData tmd = obj as TestMessageData;
                return IntParam == tmd.IntParam && StringParam == tmd.StringParam;
            }

            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
